.org 80080000 //ROM: 0x1000
//Compiled: 3C08800A25083F603409C7E02129FFF8AD000000AD0000041520FFFC210800083C0AA4603C090078AD4900003C091360AD4900043409FFFFAD49000C8D4900101409FFFE000000003C1D800A27BD4950
LUI T0, 0x800A
ADDIU T0, T0, 0x3F60
ORI T1, R0, 0xC7E0
Label:
ADDI T1, T1, 0xFFF8
SW R0, 0x0000 (T0)
SW R0, 0x0004 (T0)
BNEZ T1, Label
ADDI T0, T0, 0x0008
LUI T2, 0xA460
LUI T1, 0x0078	//RAM address
SW T1, 0x0000 (T2)
LUI T1, 0x1360	//ROM address
SW T1, 0x0004 (T2)
ORI T1, R0, 0xFFFF	//Size
SW T1, 0x000C (T2)
LW T1, 0x0010 (T2)
BNE R0, T1, 0x8008003C
NOP
LUI SP, 0x800A
ADDIU SP, SP, 0x4950

.org 80080858 //ROM: 0x1858
//compiled: 00000000
NOP

.org 800802D8 //ROM: 0x12D8
//compiled: 00000000
NOP
